package com.ishowcode.controller;
import com.ishowcode.beans.Car;
import com.ishowcode.beans.People;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
public class HelloController {
    @RequestMapping("/hello")
    public  String HelloController(){
        return "Hello SpringBoot 2";
    }
    @Autowired
    People people;
    @RequestMapping("/people")
        public People People(){
       log.info("请求进来了");
        return people;
    }
    @Autowired
    Car car;
    @RequestMapping("/car")
    public Car car(){
        return car;
    }
}
